/* Preston Cowley  */

package fatboy.addons;


import java.io.Serializable;

import fatboy.hypeerweb.Node;


/**
 * 
 * @author Preston
 * @domain all valid nodes and visitors
 */
public class MessageData implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7793416548428697416L;
	private Visitor command;
	private Node target;

	/**
	 * Message Data used for the SendMessage class
	 * Stores a visitor to execute as the message
	 * and the node to receive
	 * 
	 */
	public MessageData(Visitor command, Node recipient) {
		this.command = command;
		this.target = recipient;
	}

	public Visitor getCommand() {
		return command;
	}

	public void setCommand(Visitor command) {
		this.command = command;
	}

	public Node getTarget() {
		return target;
	}

	public void setTarget(Node recipient) {
		this.target = recipient;
	}
}
